/**
 @Author: LiuHao
 @Time : 2018/5/18 19:58
 @Anno :
 **/

import VueRouter from 'vue-router'
import portal from './components/portal.vue'
import member from './components/member.vue'
import cart from './components/cart.vue'
import search from './components/search.vue'

export default new VueRouter({
    routes: [
        {path: '/', redirect: '/portal'},
        {path: '/portal', component: portal},
        {path: '/member', component: member},
        {path: '/cart', component: cart},
        {path: '/search', component: search}
    ],
    // 覆盖默认的路由高亮的类,默认的类叫做router-link-active
    linkActiveClass: 'mui-active'
})